package fr.ece.ing4.si.gui;

import java.awt.Dimension;
import java.util.ArrayList;

import javax.swing.*;

import fr.ece.ing4.si.montecarloapplication.SetOfArguments;

public class MainPanel extends JPanel {
	
	/* Attributes for the creation of the tabs */
	
	private JTabbedPane tabsContainer = new JTabbedPane(JTabbedPane.LEFT);
	
	private CalculationPanel calculationTab;
	
	private GraphPanel graphsTab = new GraphPanel();
	
	
	/* Default constructor */
	
	public MainPanel(ArrayList<SetOfArguments> tableOfArguments) {
		
		super();
		
		calculationTab = new CalculationPanel(tableOfArguments);
		
	}
	
	
	public void tabsOrganisation() {
		
		tabsContainer.addTab("Calculation", null, calculationTab, "Display the calculation view");
		tabsContainer.addTab("Graphs", null, graphsTab, "Display the graphs view");
		
		tabsContainer.setPreferredSize(new Dimension(1100, 750));
		
		add(tabsContainer);
		
	}

}
